#pragma once

#include "TestItemInterface.h"

#ifdef MMITESTBASEDLG_EXPORTS
#define MMITESTBASEDLG_API __declspec(dllexport)
#else
#define MMITESTBASEDLG_API __declspec(dllimport)
#endif

// 
// Class CMmiTestBaseDlg
// This is the base class of all MMI test item dialog
//
class MMITESTBASEDLG_API CMmiTestBaseDlg : public CDialog
{
public:
	CMmiTestBaseDlg(UINT nIDTemplate, CWnd* pParentWnd = NULL );
    virtual ~CMmiTestBaseDlg();

    virtual BOOL OnInitDialog();

protected:
	virtual void DoDataExchange(CDataExchange* pDX);
	virtual void OnOK();
	virtual void OnCancel();

    void EndTest(TEST_RESULT_ENUM eResult);

    virtual BOOL ExtraInit();
    virtual void ExtraDeinit();

    int   m_screenWidth;
	int   m_screenHeight;
	CFont m_font;

    bool  m_fEnd;

    DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
};

